import request from '@/utils/request'

export function getByRole(id) {
  return request({
    url: '/rolePermissionRelation/getByRole/'+id,
    method: 'get',
  })
}

export function updateByRole(param) {
  return request({
    url: '/rolePermissionRelation/updateByRole',
    method: 'put',
    data:param
  })
}
